﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThanhTu.GNC.Media.KQXS.DataAccess.DAL;

namespace GNCMedia.KQXS.Admin
{
    public partial class ManagerSyntax : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                MessengerSyntaxDAL mesDAL = new MessengerSyntaxDAL();
                int rowncount = 0;
                mesDAL.SelectAll_Messenger(1, 10, ref rowncount);
                int totalRecord = rowncount;
                lblTotal.ForeColor = System.Drawing.Color.Blue;
                lblTotal.Text = Convert.ToString(totalRecord);
            }
            catch (Exception ex)
            {
                Response.Write("Error at MannagerSyntax:" + ex);
            }
            finally
            {

            }
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Response.Redirect("AddNewSyntax.aspx");
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("AddNewSyntax.aspx");
        }
    }
}